/**
 * 
 */
package org.lionsteins.eddie.server;

import java.sql.Date;

import org.lionsteins.eddie.domain.Alert;




/**
 * @author seankang
 *
 */
public class AlertRecordTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		Date start = new Date(System.currentTimeMillis());
		Date end = new Date(System.currentTimeMillis());
		System.out.println("start: "+ start.toLocaleString());
		System.out.println("end: "+ end.toLocaleString());
		Alert earthquake = new Alert();
		earthquake.setDate(new Date(System.currentTimeMillis()));
		earthquake.setLat(32.741844);
		earthquake.setLon(-117.247772);
		earthquake.setLocation("San Diego");
		earthquake.setSender("Sean Kang");
		earthquake.setIncidentType("earthquake");
		
		HibernateServiceImpl.addAlert(earthquake);
		/*
		ArrayList<Alert> list;
		list =HibernateServiceImpl.getAlertRecords(start, end);
		for (Alert alert : list) {
			System.out.println(alert.getDate());
			System.out.println(alert.getLocation());
			System.out.println(alert.getId());
			System.out.println(alert.getLat());
			System.out.println(alert.getLon());
		}
		*/
	}

}
